﻿
using EnvDTE80;
namespace ACSR.SqlServer.AddIn.Core
{

    public class AddInContext2
    {

    }

    public class AddInContext
    {
        DTE2 _applicationObject;
        EnvDTE.AddIn _addInInstance;
        private string _workingDirectory;
        private string _uiDLL;
        public DTE2 ApplicationObject
        {
            get
            {
                return _applicationObject;
            }
        }

        public EnvDTE.AddIn AddInInstance
        {
            get
            {
                return _addInInstance;
            }
        }

        public string WorkingDirectory
        {
            get
            {
                return this._workingDirectory;
            }
        }

        public string UIDll
        {
            get
            {
                return this._uiDLL;
            }
        }

        public AddInContext(object addInInst)
        {
            //this._uiDLL = Path.Combine(_workingDirectory, "ACSR.SqlServer.Addin.Core.UI.dll");
            //this._workingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            //this._addInInstance = (EnvDTE.AddIn)addInInst;
            //this._applicationObject = (DTE2)_addInInstance.DTE;
        }
    }
}
